package org.example.zerenlian.chain.fliter;

import org.example.zerenlian.chain.abstr.VirtualProductAbsService;
import org.example.zerenlian.chain.dto.VirtualDTO;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Objects;

/**
 * @author czj
 * @date 2024/12/7
 * @description
 */
@Service
public class VirtualFilter implements VirtualProductAbsService {
    @Override
    public void process(VirtualDTO param) {
        if (Objects.isNull(param.getPrice()) || param.getPrice().compareTo(BigDecimal.ZERO) <= 0) {
            System.out.println("价格不合法");
        }
    }
}
